/**
 * 
 */
package com.cp16.tss.bo;

import java.util.List;

import com.cp16.tss.dao.UserLoginDAO;
import com.cp16.tss.dto.UserLogin;

/**
 * @author ADMIN
 * 
 */
public class UserLoginBO {

	private UserLoginDAO userDAO = new UserLoginDAO();

	public List<UserLogin> getAllUser() throws Exception {
		return userDAO.getAllUser();
	}

	public UserLogin getUserByName(String userName) {
		return userDAO.getUserByName(userName);
	}

	public boolean addUser(UserLogin user) throws Exception {
		return userDAO.addUser(user);
	}

	public boolean editUser(UserLogin user) throws Exception {
		return userDAO.editUser(user);
	}

	public boolean deleteUser(UserLogin user) throws Exception {
		return userDAO.deleteUser(user);
	}

	public boolean checkAccount(String userName, String password) {
		return userDAO.checkAccount(userName, password);
	}
}
